package com.admin.education.dataTransferObject.integrals;

import com.admin.education.dataTransferObject.userInformation.UserInformationTransfer;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;

@Data
public class IntegralsTransfer  implements Comparable {
    private BigDecimal value;
    private UserInformationTransfer userInformation;
    public String designation;

    @Override
    public int compareTo(Object o) {
        IntegralsTransfer integralsTransfer = (IntegralsTransfer)o;
        if(null!=integralsTransfer){
            return  integralsTransfer.getValue().compareTo(integralsTransfer.getValue());
        }
        return 0;
    }
}
